using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevInspectionpointinfoTList, table list:dev_inspectionpointinfo_t 
	/// </summary>
	internal class DevInspectionpointinfoTList : BaseWritableEntities<DevInspectionpointinfoT>, IDevInspectionpointinfoTList
	{
		private DevInspectionpointinfoTQueryDAO _queryDAO;
		private DevInspectionpointinfoTWritingDAO _writeDAO;

		public DevInspectionpointinfoTList(DevInspectionpointinfoTQueryDAO queryDao, DevInspectionpointinfoTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevInspectionpointinfoT,table items:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionpointinfoT> GetDevInspectionpointinfoTAllItems()
		{
			return _queryDAO.GetDevInspectionpointinfoTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevInspectionpointinfoT,table items:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionpointinfoT> GetDevInspectionpointinfoTItemsById(int id)
		{
			return _queryDAO.GetDevInspectionpointinfoTItemsById(id);
		}

		/// <summary>
		/// 根据locationId，获取所有DevInspectionpointinfoT,table items:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevInspectionpointinfoT> GetDevInspectionpointinfoTItemsByLocationId(int locationId)
		{
			return _queryDAO.GetDevInspectionpointinfoTItemsByLocationId(locationId);
		}

		/// <summary>
		/// 增加一行DevInspectionpointinfoT,table item:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevInspectionpointinfoT(DevInspectionpointinfoT item)
		{
			return this._writeDAO.AddDevInspectionpointinfoT(item);
		}

		/// <summary>
		/// 增加多行DevInspectionpointinfoT,table items:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevInspectionpointinfoTs(DevInspectionpointinfoT[] items)
		{
			return this._writeDAO.AddDevInspectionpointinfoTs(items);
		}

		/// <summary>
		/// 更新一行DevInspectionpointinfoT,table item:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevInspectionpointinfoT(DevInspectionpointinfoT item)
		{
			return this._writeDAO.UpdateDevInspectionpointinfoT(item);
		}

		/// <summary>
		///  更新多行DevInspectionpointinfoT,table items:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevInspectionpointinfoTs(DevInspectionpointinfoT[] items)
		{
			return this._writeDAO.UpdateDevInspectionpointinfoTs(items);
		}

		/// <summary>
		/// 删除一行DevInspectionpointinfoT,table item:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectionpointinfoT(DevInspectionpointinfoT item)
		{
			return this._writeDAO.DeleteDevInspectionpointinfoT(item);
		}

		/// <summary>
		///  删除多行DevInspectionpointinfoT,table items:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectionpointinfoTs(DevInspectionpointinfoT[] items)
		{
			return this._writeDAO.DeleteDevInspectionpointinfoTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevInspectionpointinfoT,table entity:dev_inspectionpointinfo_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevInspectionpointinfoTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevInspectionpointinfoTByIds(ids);
		}

	}
}
